﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data.Common;
using NLBS.Entity;
using System.Data;

namespace NLBS.Data
{
    public partial class NHibernateDataProvider : DbProvider
    {
        #region VisitorRecord

        public override IList<VisitorRecord> GetVisitorRecord()
        {
            return CurrentSession.CreateCriteria(typeof(VisitorRecord))
                .SetMaxResults(100)
                .List<VisitorRecord>();
        }

        public override void InsertVisitorRecord(VisitorRecord visitor)
        {
            CurrentSession.Save(visitor);
        }

        #endregion
    }
}
